<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();

%>
<%
request.setCharacterEncoding( "utf-8" );
String content = request.getParameter("id");

%>

	获得id内容为:<div class='content'><%=content %></div>
	<br>

<button  type="button" data-target="close" data-container="#tcdiv">close</button>	
<form action="testajax.jsp" id="insertform" method="post">
<input type="text" class="span2" name="name" id="na" >
<button  type="button" data-target="submit" data-container="#tcdiv" data-callbackform="#eee">submit</button>
</form>	
<script>

/*validator = function() {
	alert("validator....");
	return true;
};*/
/** 弹出层关闭按钮 **/
$(document).off("vilidate").on("vilidate","#insertform",function(){
	//validator..this form....
	if($("#na").val()==''){
		alert("名称不能为空");
		$(this).data("result",false);
	}else{
		$(this).data("result",true);
	}
});	
</script>